using System;
using System.Collections.Generic;
using NHibernate.Validator;

namespace RMH.Entities
{
    public class Patient : Person
    {
        public Patient()
        {
            
        }

        public virtual DateTime? DateOfBirth { get; set; }
        public virtual DateTime? DateOfDeath { get; set; }
        public virtual County County { get; set; }

        private IList<Diagnosis> _diagnoses = new List<Diagnosis>();

        [NotEmpty]
        public virtual IList<Diagnosis> Diagnoses
        {
            get { return _diagnoses; }
            set { _diagnoses = value; }
        }

        private IList<Note> _note = new List<Note>();
        public virtual IList<Note> Notes
        {
            get { return _note; }
            set { _note = value; }
        }

        private IList<Relationship> _relationships = new List<Relationship>();
        public virtual IList<Relationship> Relationships
        {
            get { return _relationships; }
            set { _relationships = value; }
        }

        private IList<Stay> _stays = new List<Stay>();
        public virtual IList<Stay> Stays
        {
            get { return _stays; }
            set { _stays = value; }
        }
    }
}